package com.dst.java_demo.util;

import com.dst.java_demo.common.CommonResponse;

/**
 * @Author: LiJian
 * @Date: 2021/1/20 15:35
 */
public class ResponseDataUtil {
    public static String returnResult(CommonResponse commonResponse) {
        return GenericAndJson.objectToJson(commonResponse);
    }

    public static String returnResult(Object object) {
        return GenericAndJson.objectToJson(new CommonResponse(object));
    }

    public static String returnResult() {
        return GenericAndJson.objectToJson(new CommonResponse());
    }
}
